package com.ruoyi.used.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 used_user
 * 
 * @author ruoyi
 * @date 2020-07-10
 */
public class UsedUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long uid;

    /** 昵称 */
    @Excel(name = "昵称")
    private String username;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 头像 */
    @Excel(name = "头像")
    private String photo;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String type;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 上级用户id */
    @Excel(name = "上级用户id")
    private Long fid;

    /** 信誉积分 */
    @Excel(name = "信誉积分")
    private Long creditScore;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String inviteCode;

    /** 简介 */
    @Excel(name = "简介")
    private String intro;

    /** 获利积分 */
    @Excel(name = "获利积分")
    private Long profitScore;

    /** 会员等级id */
    @Excel(name = "会员等级id")
    private Long meid;

    /**上级用户*/
    private String fname;

    /*会员等级表*/
    private UsedMember member;

    public UsedMember getMember() {
        return member;
    }

    public void setMember(UsedMember member) {
        this.member = member;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setCreditScore(Long creditScore) 
    {
        this.creditScore = creditScore;
    }

    public Long getCreditScore() 
    {
        return creditScore;
    }
    public void setInviteCode(String inviteCode) 
    {
        this.inviteCode = inviteCode;
    }

    public String getInviteCode() 
    {
        return inviteCode;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setProfitScore(Long profitScore) 
    {
        this.profitScore = profitScore;
    }

    public Long getProfitScore() 
    {
        return profitScore;
    }
    public void setMeid(Long meid) 
    {
        this.meid = meid;
    }

    public Long getMeid() 
    {
        return meid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uid", getUid())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("sex", getSex())
            .append("photo", getPhoto())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("address", getAddress())
            .append("fid", getFid())
            .append("creditScore", getCreditScore())
            .append("inviteCode", getInviteCode())
            .append("intro", getIntro())
            .append("profitScore", getProfitScore())
            .append("meid", getMeid())
            .append("fname",getFname())
            .append("member",getMember())
            .toString();
    }
}
